import React from 'react'
import B from './B'

export default function A() {
  //数据
  let data = '最近成都的各大景点门票是真的难抢';
  //声明函数
  let getData = (res) => {
    console.log(res);
  }
  return (
    <div>
      <h2>A</h2>
      <hr />
      <B data={data} getData={getData} />
    </div>
  )
}
